package cn.wolfcode.luowowo.article.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
public class DestinationTheme extends BaseDomain {

    public static final Long ALL_YEAR = 1L; //全年适宜
    public static final Long SEASON = 2L; //季节
    public static final Long MODE = 3L; //出行方式
    public static final Long HOLIDAY = 4L; //假期

    private String name;

    private Long parentId;

    private String coverUrl;

    public String getJsonString(){
        Map<String, Object> map = new HashMap<>();
        map.put("id",id);
        map.put("name",name);
        map.put("parentId",parentId);
        map.put("coverUrl",coverUrl);
        return JSON.toJSONString(map);
    }

}